﻿using System;
using System.Collections.Generic;
using System.Text;
using EShop.Model;

using EShop.DAL;

namespace EShop.BLL
{
    public class MerchandiseUnitBLL
    {
         /// <summary>
        /// 取商品单位所有数据
        /// </summary>
        /// <returns></returns>
        public List<MerchandiseUnitInfo> GetAllMerchandiseUnitList()
         {
             return new MerchandiseUnitDAL().GetAllMerchandiseUnitList();
         }
        /// <summary>
        /// 增加商品单位
        /// </summary>
        /// <param name="strUnit"></param>
        /// <returns></returns>
        public bool  MerchandiseUnitAppend(string strUnit)
        {
            return new MerchandiseUnitDAL().MerchandiseUnitAppend(strUnit) > 0;
        }
    }
}
